package com.xh.personsystem.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {

    private Integer code = 200;
    private String status = "success";
    private Object data;



    public Object success(Object datas) {
        return new Result(code, status,datas);
    }

    public Object fullError(int code ,String msg) {
        return new Result(code,msg,null);
    }
}
